package com.mall.sun.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * description: 订单传输类 <br>
 * date: 2021/12/8 19:17 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@Data
public class OrderDTO {

    @ApiModelProperty(value = "订单编号")
    private Integer ordId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "商品名")
    private String gName;

    @ApiModelProperty(value = "购买的商品数量")
    private Integer gcount;

    @ApiModelProperty(value = "收货人")
    private String accepter;

    @ApiModelProperty(value = "收货人联系电话")
    private String tel;

    @ApiModelProperty(value = "送货地址")
    private String address;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总计")
    private Double totalPrice;

    @ApiModelProperty(value = "订单日期")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime orderTime;

    @ApiModelProperty(value = "0-未处理 1-正在找货 2-已发货 3-货已到 4-账单已结 5-退货")
    private Integer state;
}
